%%
%=======================================================================
% -AFT project summary and quality check
%=======================================================================
%% get nifti dim
subdir = spmk_filelist('AFT*');
res  = cell (length(subdir),4);
for i =1:length(subdir)
    res(i, 1)=subdir(i);
    cd(cell2mat(subdir(i)))
    cd _niigz
    try
        fdg = spm_vol('FDG.nii.gz');
        res(i, 2)= {fdg.dim};
    catch
    end
    try
        ace = spm_vol('Acetate.nii.gz');
        res(i, 3)= {ace.dim};
    catch
    end
    try
        tspo = spm_vol('TSPO.nii.gz');
        res(i, 4)= {tspo.dim};
    catch
    end
    cd ..
    cd ..
    
   
end
res